#include "iostream"
using namespace std ;
#include "task1/Graph.h"
#include "task2/Complex.h"
int main (){
    Shape* base;
    Circle a(10.0);
    Rectangle b(11.0,12.0);
    Square c(11.0);
    LadderShape d(1.0,2.0,3.0);
    base=&a;
    cout <<"圆形面积"<<base->getArea()<<endl;
    base=&b;
    cout <<"矩形面积"<<base->getArea()<<endl;
    base=&c;
    cout <<"正方形面积"<<base->getArea()<<endl;
    base=&d;
    cout <<"梯形面积"<<base->getArea()<<endl;
    Complex com1(1,1);
    Complex com2(1,1);
    cout<<"com1:"<<com1<<",com2:"<<com2<<endl;
    cout << "相加:";
    cout <<com1+com2<<endl;
    cout << "相减:";
    cout << com1-com2<<endl;
    cout <<"取负:";
    cout << -com1<<endl;
    cout <<"相乘:";
    cout <<com1*com2<<endl;
    cout <<"相除:";
    cout <<com1/com2<<endl;
    cout <<"实数相加";
    cout <<1+com1<<endl;
}